package com.jacklin.service;

import com.jacklin.DTO.OrderDTO;
import me.chanjar.weixin.common.exception.WxErrorException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @Author:JackLin
 * @Create 2019/3/28 17:40
 */
public interface OrderService    {

    /**创建订单*/
    OrderDTO create(OrderDTO orderDTO);

    /**查询单个订单*/
    OrderDTO findOne(String orderId);

    /**查询订单列表*/
    Page<OrderDTO> findList(String buyerOpenid, Pageable pageable);

    /**取消订单*/
    OrderDTO cancel(OrderDTO orderDTO);

    /**完结订单*/
    OrderDTO finish(OrderDTO  orderDTO) throws WxErrorException;

    /**支付订单*/
    OrderDTO paid(OrderDTO orderDTO);

    /**查询全部订单-给卖家使用*/
    Page<OrderDTO> findList(Pageable pageable);


}


